Ext.extend(avatar.module, {
	init : function() {

		  var  product_sale_ds = new Ext.data.JsonStore({
				fields: [ 'productName', 'amount', 'sum', 'avaragePrice' ]
			});
			
			
		this.tabpanel.add(
		  {
			xtype:'grid',
		    id:'product-sale-summary',
            title: '产品销售统计',
            closable:true,
            border: false,
			layout:'fit',
				enableHdMenu: false,
	        	store: new Ext.data.JsonStore({
				   fields: [ 'productName', 'amount', 'sum', 'avaragePrice' ]
			    }),
				columns: [
			       new Ext.grid.RowNumberer(),
				   {header: '产品', dataIndex : 'productName', sortable:true, width: 120},
				   {header: '总数量', dataIndex : 'amount', width : 70},
				   {header: '总金额', dataIndex : 'sum', width : 70},
				   {header: '平均单价', dataIndex : 'avaragePrice', width: 70}					
				]
			    
			
          }).show();
	}
});

